import subprocess

ffplay = subprocess.Popen('ffplay -window_title face_recognition'
                          ' -f rawvideo -pixel_format bgr24 -video_size 640x480 -i -',
                          stdin=subprocess.PIPE,
                          bufsize=1024 * 1024 * 2)
